package com.rech.view;

import android.content.Context;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.LinearLayout;

import com.rech.xbexpress3.R;

/**
 * Created by sunshine on 2020/9/28
 */
public class NumberKeyboardView extends LinearLayout {
    private Context mContext;
    private boolean isBig;

    public NumberKeyboardView(Context context, boolean isBig) {
        super(context);
        initView(context, isBig);
    }

    public NumberKeyboardView(Context context, @Nullable AttributeSet attrs, boolean isBig) {
        super(context, attrs);
        initView(context, isBig);
    }

    public NumberKeyboardView(Context context, @Nullable AttributeSet attrs, int defStyleAttr, boolean isBig) {
        super(context, attrs, defStyleAttr);
        initView(context, isBig);
    }


    private void initView(Context context, boolean isBig){
        this.mContext = context;
        this.isBig = isBig;
        if (isBig) {
            LayoutInflater.from(context).inflate(R.layout.layout_number_keyboard_big_9,this);
        } else {
            LayoutInflater.from(context).inflate(R.layout.layout_number_keyboard_9,this);
        }
    }
}
